<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
		    *{
		    	    margin: 0;
		    	    padding: 0;
		    }
			.show{
				width: 500px;
				height: 300px;
				margin:20px auto;
				overflow: hidden;
			}
			.content{
				position: relative;
				width: 2000px;
				height: 300px;
			}
			.content img{
				width: 500px;
				height: 300px;
				float: left;
			}
		</style>
	</head>
	<body>
		<div class="show">
			<div class="content">
				<img src="https://img.alicdn.com/tfs/TB12uH3QVXXXXXgaXXXXXXXXXXX-520-280.jpg_q90_.webp" alt="" />
				<img src="https://img.alicdn.com/simba/img/TB19F5hQXXXXXaVXFXXSutbFXXX.jpg" alt="" />
				<img src="https://img.alicdn.com/simba/img/TB1z7FaRXXXXXadXXXXSutbFXXX.jpg" alt="" />
				<img src="https://img.alicdn.com/tfs/TB12uH3QVXXXXXgaXXXXXXXXXXX-520-280.jpg_q90_.webp" alt="" />
			</div>
		</div>
		<script src="js/jquery-3.2.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		    var Lefts = 0;
			$(function fn(){
				Lefts-=500;
				if(Lefts==-2000){
					Lefts=0;
					$(".content").css("left","0")
				};
				$(".content").animate({
					left:Lefts,
				},2000,fn)
			})
		</script>
	</body>
</html>
